/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.stateless;

import entity.Address;
import entity.RawMaterial;
import entity.Supplier;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author JASMINE
 */
@Local
public interface SupplierSessionBeanLocal {

    public void addSupplier(String supplierId, String name, Integer contact, Address supplierAddress, String ranking, String comment, String email, String company, List<RawMaterial> rawMaterials);

    public void deleteSupplier(String supplierId);

    public void deleteSupplierRawMaterial(String supplierId, Long rawMaterialId);

    public Supplier getSupplierBySupId(String supplierId, String company);

    public Supplier getSupplierBySupId(String supplierId);

    public List<Supplier> getSuppliers();

    public void updateSupplier(String supplierId, String name, Integer contact, Address supplierAddress, String ranking, String comment, String email, String company);

    public void updateSupplierRawMaterial(String supplierId, RawMaterial rawMaterial);
}
